#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int m = 2, count = 0;
	int i;
	while (m <= 100);
	{
		for (i = 2; i < m; i++)
		if (m % i == 0)break;
		if (i >= m) {
			printf("%3d", m);
			count++;
		}
		if (count % 10 == 0)printf("\n");
		m++;
	}
	return 0;
}